﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Waaahsabi.Controls.FileSystem" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit" 
	xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" 
	xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit" 
	xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" 
	xmlns:System="clr-namespace:System;assembly=mscorlib" 
	mc:Ignorable="d" 
	>
    <Style TargetType="local:GatewayFileItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:GatewayFileItem">
                	<Grid MinHeight="11">
                		<VisualStateManager.VisualStateGroups>
                			<VisualStateGroup x:Name="DisplayModes">
                				<VisualState x:Name="Large"/>
                				<VisualState x:Name="Condensed">
                					<Storyboard>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="border">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<Visibility>Collapsed</Visibility>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="border1">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<Visibility>Collapsed</Visibility>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="border2">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<Visibility>Collapsed</Visibility>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="grid1">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<Visibility>Collapsed</Visibility>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="stackPanel">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<Visibility>Collapsed</Visibility>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                						<ColorAnimation Duration="0" To="White" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)" Storyboard.TargetName="border3" d:IsOptimized="True"/>
                						<ColorAnimation Duration="0" To="#7FFFFFFF" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="border3" d:IsOptimized="True"/>
                						<ColorAnimation Duration="0" To="White" Storyboard.TargetProperty="(Control.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="txtFileName" d:IsOptimized="True"/>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="txtFileName">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<System:Boolean>True</System:Boolean>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.IsHitTestVisible)" Storyboard.TargetName="txtFileName">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<System:Boolean>False</System:Boolean>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                					</Storyboard>
                				</VisualState>
                			</VisualStateGroup>
                			<VisualStateGroup x:Name="MouseStates">
                				<VisualState x:Name="Idle">
                					<Storyboard>
                						<DoubleAnimation Duration="0" To="0.25" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="border3" d:IsOptimized="True"/>
                					</Storyboard>
                				</VisualState>
                				<VisualState x:Name="MouseOver">
                					<Storyboard>
                						<DoubleAnimation Duration="0" To="0.5" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="border3" d:IsOptimized="True"/>
                					</Storyboard>
                				</VisualState>
                				<VisualState x:Name="Selected">
                					<Storyboard>
                						<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="border3" d:IsOptimized="True"/>
                						<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="txtFileName" d:IsOptimized="True"/>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="glass">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<Visibility>Visible</Visibility>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                					</Storyboard>
                				</VisualState>
                			</VisualStateGroup>
                		</VisualStateManager.VisualStateGroups>
                		<Border x:Name="border3" BorderBrush="Black" BorderThickness="1,1" Grid.ColumnSpan="3" CornerRadius="2" Background="Black" Opacity="0.25"/>
                		<Grid x:Name="grid" Margin="1" Grid.ColumnSpan="3" Opacity="0.9">
                			<Grid.RowDefinitions>
                				<RowDefinition Height="6"/>
                				<RowDefinition/>
                				<RowDefinition Height="6"/>
                			</Grid.RowDefinitions>
                			<Border x:Name="border" Grid.Row="3" BorderThickness="0" BorderBrush="Black" CornerRadius="0,0,5,5">
                				<Border.Background>
                					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                						<GradientStop Color="{StaticResource WindowColorGradientDark}" Offset="1"/>
                						<GradientStop Color="{StaticResource WindowColorGradientBright}"/>
                					</LinearGradientBrush>

                				</Border.Background>
                			</Border>
                			<Border x:Name="border1" BorderThickness="0" d:LayoutOverrides="GridBox" BorderBrush="Black" CornerRadius="5,5,0,0">
                				<Border.Background>
                					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                						<GradientStop Color="White"/>
                						<GradientStop Color="{StaticResource WindowColorGradientBright}" Offset="1"/>
                					</LinearGradientBrush>

                				</Border.Background>
                			</Border>
                			<Border x:Name="border2" BorderThickness="0" Grid.Row="1" d:LayoutOverrides="GridBox" BorderBrush="Black">
                				<Border.Background>
                					<SolidColorBrush Color="{StaticResource WindowColorGradientBright}"/>
                				</Border.Background>
                			</Border>
                			<StackPanel Grid.Row="1" Margin="5,0">
                				<TextBox x:Name="txtFileName" Text="{TemplateBinding FileName}" BorderBrush="{x:Null}" Background="{x:Null}" Foreground="Black" Padding="0" Margin="-2,-4,-2,0" VerticalScrollBarVisibility="Hidden" IsReadOnly="True" Style="{StaticResource GatewayFilename}" Opacity="0.75"/>
                				<Grid x:Name="grid1" Height="13">
                					<Grid.ColumnDefinitions>
                						<ColumnDefinition Width="0.5*"/>
                						<ColumnDefinition Width="0.5*"/>
                					</Grid.ColumnDefinitions><!---->
                					<StackPanel Margin="0,0,3,0" Orientation="Horizontal">
                						<TextBlock x:Name="txtSize" HorizontalAlignment="Left" TextWrapping="Wrap" Foreground="#BF000000" FontFamily="/Waaahsabi.Controls.FileSystem;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" VerticalAlignment="Top" DataContext="{TemplateBinding FileSize}" Text="{Binding Converter={StaticResource NumberTypeToStringConverter}}"/>
                						<TextBlock TextWrapping="Wrap" Text="GB" FontFamily="/Waaahsabi.Controls.FileSystem;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" VerticalAlignment="Center" Margin="5,0,0,0"/>
                					</StackPanel>
                					<StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right">
                						<TextBlock TextWrapping="Wrap" Text="Version:" FontFamily="/Waaahsabi.Controls.FileSystem;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" d:LayoutOverrides="Width" Margin="0,0,3,0"/>
                						<TextBlock x:Name="txtVersion" TextWrapping="Wrap" FontFamily="/Waaahsabi.Controls.FileSystem;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Text="{Binding Converter={StaticResource NumberTypeToStringConverter}}" DataContext="{TemplateBinding FileVersion}" HorizontalAlignment="Left"/>
                					</StackPanel>
                				</Grid>
                				<StackPanel x:Name="stackPanel" Orientation="Horizontal" VerticalAlignment="Top">
                					<TextBlock FontFamily="/Waaahsabi.Controls.FileSystem;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Text="C" TextWrapping="Wrap" Foreground="Black" Margin="0,0,5,0"/>
                					<ProgressBar Style="{StaticResource CompressionProgressBarStyle}" Maximum="6" SmallChange="1" Value="{TemplateBinding FileCompressionLevel}" Background="#FF323232" BorderBrush="{x:Null}" Margin="0,2,10,2" BorderThickness="0" VerticalAlignment="Center" Height="7" Width="70">
                						<ProgressBar.Foreground>
                							<SolidColorBrush Color="{StaticResource TheGameBrightRed}"/>
                						</ProgressBar.Foreground>
                					</ProgressBar>
                					<TextBlock FontFamily="/Waaahsabi.Controls.FileSystem;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="Black" Text="E" TextWrapping="Wrap" Margin="0,0,5,0"/>
                					<ProgressBar Background="#FF323232" BorderBrush="{x:Null}" BorderThickness="0" Margin="0,2,5,2" Style="{StaticResource CompressionProgressBarStyle}" Maximum="6" SmallChange="1" Value="{TemplateBinding FileEncryptionLevel}" VerticalAlignment="Center" Height="7" Width="70">
                						<ProgressBar.Foreground>
                							<SolidColorBrush Color="{StaticResource TheGameLightBlue}"/>
                						</ProgressBar.Foreground>
                					</ProgressBar>
                				</StackPanel>
                			</StackPanel>
                		</Grid>
                		<Border x:Name="glass" CornerRadius="2" Background="{StaticResource DefaultGlassGradient}" d:LayoutOverrides="GridBox" Visibility="Collapsed"/>
                	</Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="FileCompressionLevel" Value="4"/>
        <Setter Property="FileEncryptionLevel" Value="5"/>
        <Setter Property="FileName" Value="Internalservices.Adminstration.Inc.FPRINT"/>
        <Setter Property="FileSize" Value="999"/>
        <Setter Property="FileVersion" Value="999"/>
        <Setter Property="Mode" Value="Large"/>
    </Style>

    <Style TargetType="local:GatewayFileManager">
        <Setter Property="TotalCapacity" Value="-1"/>
		<Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:GatewayFileManager">
                    <Border d:DesignWidth="828" d:DesignHeight="485" Background="{StaticResource DefaultWindowColor}" CornerRadius="5" BorderThickness="1" BorderBrush="{StaticResource DefaultWindowBorder}">
                    	<Grid>
                    		<ScrollViewer VerticalScrollBarVisibility="Visible" Margin="3,32" BorderBrush="{StaticResource DefaultWindowBorder}">
                    			<controlsToolkit:WrapPanel x:Name="itemContainer"/>
                    		</ScrollViewer>
                    		<Button x:Name="btnRefresh" Content="q" HorizontalAlignment="Right" VerticalAlignment="Top" Width="24" FontFamily="Webdings" FontSize="18.667" Padding="2,3,4,3" Height="24" Margin="0,5,3,0"/>
                    		<StackPanel VerticalAlignment="Bottom" Orientation="Horizontal" Margin="10,0">
                    			<TextBlock TextWrapping="Wrap" Text="Total capacity:" VerticalAlignment="Center" Margin="0,0,3,0"/>
                    			<TextBlock TextWrapping="Wrap" Margin="0,0,3,0" VerticalAlignment="Center" Text="{Binding Converter={StaticResource NumberTypeToStringConverter}}" DataContext="{TemplateBinding TotalCapacity}"/>
                    			<TextBlock TextWrapping="Wrap" Text="GB" VerticalAlignment="Center" Margin="0,0,10,0"/>
                    			<TextBlock TextWrapping="Wrap" Text="Available capacity:" VerticalAlignment="Center" Margin="0,0,3,0"/>
                    			<TextBlock TextWrapping="Wrap" Margin="0,0,3,0" VerticalAlignment="Center" Text="{Binding Converter={StaticResource NumberTypeToStringConverter}}" DataContext="{TemplateBinding AvailableCapacity}"/>
                    			<TextBlock TextWrapping="Wrap" Text="GB" VerticalAlignment="Center" Margin="0,0,10,0"/>
                    			<ProgressBar x:Name="prgCapacity" Height="10" Width="200" Maximum="{TemplateBinding TotalCapacity}" Value="{TemplateBinding UsedCapacity}"/>
                    		</StackPanel>
                    		<TextBox x:Name="txtFileSearch" TextWrapping="Wrap" VerticalAlignment="Top" Margin="3,6,40,0"/>
                    	</Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="local:SystemFileItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:SystemFileItem">
                    <Grid d:DesignWidth="547" MinHeight="10" d:DesignHeight="69">
                    	<Grid.ColumnDefinitions>
                    		<ColumnDefinition MinWidth="75"/>
                    		<ColumnDefinition Width="0.333*" MaxWidth="50"/>
                    		<ColumnDefinition Width="0.333*" MinWidth="50"/>
                    	</Grid.ColumnDefinitions>
                		<Border CornerRadius="2,0,0,2" Margin="0,0,1,0" Background="#1EFFFFFF" d:LayoutOverrides="Width, Height" BorderBrush="#7FFFFFFF" BorderThickness="1,1,0,1"/>
                    	<TextBlock VerticalAlignment="Top" Text="{TemplateBinding FileName}" d:LayoutOverrides="Width" Margin="5,0" Foreground="#BFFFFFFF" FontFamily="/Waaahsabi.Controls.FileSystem;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8"/>
                    	<Border Background="#1EFFFFFF" Margin="1,0" Grid.Column="1" d:LayoutOverrides="Height" BorderBrush="#7FFFFFFF" BorderThickness="0,1"/>
                    	<TextBlock Text="{TemplateBinding FileSize}" Margin="0,0,5,0" Grid.Column="1" Foreground="#BFFFFFFF" FontFamily="/Waaahsabi.Controls.FileSystem;component/Fonts/Fonts.zip#Bavaria Regular" TextAlignment="Right" VerticalAlignment="Top" FontSize="8"/>
                    	<Border CornerRadius="0,2,2,0" Background="#1EFFFFFF" Margin="1,0,0,0" Grid.Column="2" d:LayoutOverrides="Height" BorderBrush="#7FFFFFFF" BorderThickness="0,1,1,1"/>
                    	<TextBlock VerticalAlignment="Top" Text="{TemplateBinding FileType}" Margin="0,0,6,0" HorizontalAlignment="Right" Grid.Column="2" Foreground="#BFFFFFFF" FontFamily="/Waaahsabi.Controls.FileSystem;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8"/>
                	</Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
